package com.cuixk.basic.quartz.manager.service;

import com.cuixk.basic.quartz.manager.bean.QuartzJob;
import com.cuixk.basic.quartz.manager.bean.QuartzTrigger;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * Create By Cuixk
 * 2019/6/21 15:00
 */
public interface ScheduleTaskService {

    int createScheduleTask(QuartzJob job, QuartzTrigger trigger) throws SchedulerException;

    int updateScheduleTask(QuartzJob job, QuartzTrigger trigger) throws SchedulerException;

    int pauseScheduleTask(QuartzJob job) throws SchedulerException;


    int reRunScheduleTask(QuartzTrigger trigger) throws SchedulerException;

    List<QuartzJob> listScheduleTask() throws SchedulerException;

    int deleteScheduleTask(String jobName, String jobGroup) throws SchedulerException;

}
